package com.cy.sys.log.Dao;


import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysRoleUserDao {
	
	//根据角色id查询菜单id
	List<Integer> findRolemensintger(List<Integer> roleids);
	
	//删除角色关系表中的数据
	//@Delete("delete from sys_user_roles where role_id=#{id}")
	//int deleteUserRoleId(Integer id);	
	//删除菜单关系中的数据
	@Delete("delete from sys_role_menus where role_id=#{id}")
	int deleteMenuRoleId(Integer id);
	//添加菜单关系数据
	int insertMenuRoleId(Integer roleId,Integer[] menuIds);
	
}
